package com.nzw.pojo.recharge;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by yinwx on 2018\3\9 0009.
 *
 *充值记录实体类
 */


@Table(name = "t_rechargerecord")
public class RechargeRecord {

    private Long id;                //id
    private Long userId;            //用户id
    private Long companyId;         //企业id
    private Integer money;          //支付金额
    private Integer rechargeMoney;  //充值金额
    private Date rechargeDate;      //充值时间
    private Boolean isSuccess;      //是否充值成功
    private Integer giveMoney;      //赠送金额
    private Integer orderCode;      //订单编号
    private Integer wxpayCode;      //微信流水



    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    @Column(name = "userId")
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }


    @Column(name = "companyId")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    @Column(name = "money")
    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }


    @Column(name = "rechargeDate")
    public Date getRechargeDate() {
        return rechargeDate;
    }

    public void setRechargeDate(Date rechargeDate) {
        this.rechargeDate = rechargeDate;
    }


    @Column(name = "isSuccess")
    public Boolean getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(Boolean success) {
        this.isSuccess = success;
    }

    @Column(name = "giveMoney")
    public Integer getGiveMoney() {
        return giveMoney;
    }

    public void setGiveMoney(Integer giveMoney) {
        this.giveMoney = giveMoney;
    }

    @Column(name = "rechargeMoney")
    public Integer getRechargeMoney() {
        return rechargeMoney;
    }

    public void setRechargeMoney(Integer rechargeMoney) {
        this.rechargeMoney = rechargeMoney;
    }

    @Column(name = "orderCode")
    public Integer getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(Integer orderCode) {
        this.orderCode = orderCode;
    }

    @Column(name = "wxpayCode")
    public Integer getWxpayCode() {
        return wxpayCode;
    }

    public void setWxpayCode(Integer wxpayCode) {
        this.wxpayCode = wxpayCode;
    }
}


